<?php 
require('config.php');
$data = $_POST['data'];
$data = json_decode($data,true);
var_dump($data);

$pdo = new PDO("mysql:host=" . $mysql['host'] . ";dbname=" . $mysql['db'],$mysql['db_user'],$mysql['db_pwd']);
$pdo->exec("set names 'utf8'");
$orderNo = date('Ymd') . str_pad(mt_rand(1, 99999), 5, '0', STR_PAD_LEFT);
//执行增加
foreach($data as $value){
	$sql = "insert into flow_message (process_id,top,left,process_to,style,class,process_name,pid) values ($value['process_id'],$value['top'],$value['left'],$value[0]['process_to'],$value['style'],$value['class'],$value['process_name'],$value['pid'])";
	$pdo->exec($sql);
}


echo json_encode(array('data'=>123,'status'=>1));


?>